DX11 GET OBJECT SECTOR Y
Retrieves the Y coordinate of the sector that the given object currently resides in.
Sectors are used as a means to group multiple objects together and cull them early if the sector volume (which is a box) is not visible by the camera.
Sectors consist of 3x3 sub-sectors, and the outermost of these are shared between sectors to account for objects that would technically be present in more than
one adjacent sector (such as spanning over the edges of one).
This function is mainly intended for debugging purposes as a means of gathering some extra statistics, since the sector engine and sector updates are self-contained
within the Ziggurat engine itself.
Return Integer = DX11 GET OBJECT SECTOR Y(object)
object
Dword
The object to get the current world sector's Y coordinate of.
The Y coordinate of the specified object's world sector. A value of -1 will be returned if the object is in the catch-all sector.
OBJECT Functions Menu
DX11 Function Categories